home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3053 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ws180223.kbu.switzerland.attgis.com!elaroche
  2. From: elaroche@smtpadc.switzerland.attgis.com (Eric Laroche)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Segmentation fault at return statement. Can't figure out ....
  5. Message-ID: <elaroche.219.0015241C@smtpadc.switzerland.attgis.com>
  6. Date: 24 Jan 96 21:08:19 GMT
  7. References: <4dm2n1$egk@murphy.servtech.com>
  8. Sender: news@ncrcha.switzerland.attgis.com
  9. Organization: AT&T Global Information Solutions
  10. X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
  11.  
  12. In article <4dm2n1$egk@murphy.servtech.com> avi@servtech.com (Avijit 
  13. Dasgupta) writes:
  14.  
  15. ...
  16. >(dbx) where
  17. >=> [1] test( ) at line 83
  18. >dbx: bad data address
  19. >dbx fetch at 0x697075a4 failed - I/O error
  20.                 ^^^^^^
  21. This looks like the ASCII string fragment "upi" or "ipu", depending on the 
  22. byte order.  Try to figure out if test() writes beyond the bounds of an 
  23. automatic string buffer.  I would suggest using asserts in test(), like 
  24. e.g. assert( strlen(s) < sizeof(buf) ).
  25.  
  26. >dbx : attempt to read stack failed - bad frame pointer
  27.  
  28. Hope this helps.
  29. --Eric
  30.  
  31. ----
  32. Eric Laroche -- elaroche@smtpadc.switzerland.attgis.com, laroche@access.ch
  33.